﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using JKF.BusinessLayer;
using JKF.BusinessLayer.BLL;

namespace JKF.Web
{
    /// <summary>
    /// Summary description for Logout
    /// </summary>
    public class Logout : IHttpHandler,System.Web.SessionState.IRequiresSessionState
    {

        public void ProcessRequest(HttpContext context)
        {

            
            bllSYS_USER.LogOut();
            context.Response.Redirect("~" + SFWS.XHandler.Core.AppUtility.GetConfValue("sfwsHandlerSettings", "PageLogin"));
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}